package com.ctgu.tengyun.service.user;

import com.ctgu.tengyun.bean.request.SysUserBaseInfo;
import com.ctgu.tengyun.domain.SysUser;
import com.ctgu.tengyun.domain.SysUserExample;

import java.util.Collection;
import java.util.List;

/**
 * Created by liaoweizhi on 2019/7/18.
 */
public interface SysUserService {

    SysUser selectByPrimaryKey(Long id);

    List<SysUser> selectByIds(Collection<Long> ids);

    SysUser selectByUserName(String userName);

    int countByExample(SysUser sysUser);

    int insertSelective(SysUser record);

    List<SysUser> selectByExample(SysUser sysUser, Integer pageNo, Integer pageSize);

    int updatePassword(String userName, String oldPassword, String newPassword);

    int updateBaseInfo(SysUserBaseInfo baseInfo);

    int deleteUserById(Long id);

}
